﻿using JNPF.Basics.Models;
using JNPF.Utils;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace JNPF.Basics.Logic
{
    public interface VisualDevIService
    {
        /// <summary>
        /// 列表(分页)
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        Task<PageResult<VisualDevEntity>> GetList(VisualDevListQueryInput input);

        /// <summary>
        /// 列表
        /// </summary>
        /// <returns></returns>
        Task<List<VisualDevEntity>> GetList();

        /// <summary>
        /// 获取功能信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<VisualDevEntity> GetInfo(string id);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Create(VisualDevEntity entity);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns></returns>
        Task<int> Update(VisualDevEntity entity);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Delete(VisualDevEntity entity);
    }
}
